﻿﻿@{
    ViewData["Title"] = "DepartmentList";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h1 style="text-align:center">部门列表</h1>

<div style="margin:60px 60px">
    <table>
        <tr>
            <td style="padding-bottom:30px">
                <label class="layui-form-label">部门名称</label>
                <div class="layui-input-inline">
                    <input class="layui-input" id="DepartName" autocomplete="off">
                </div>
            </td>
            <td style="padding-bottom:30px">
                <button type="button" class="layui-btn layui-btn-primary" id="searchBtn" style="background-color:aqua"><i class="layui-icon"></i> 搜 索</button>
                <button type="button" class="layui-btn layui-bg-blue" onclick="location.href='/Department/DepartmentAdd'"><i class="layui-icon layui-icon-file">部门新增</i></button>
            </td>
        </tr>
    </table>

    <table id="ID-table-demo-setRowChecked"></table>
    <div id="pagesbox"></div>
</div>

<script src="~/js/organization/departmentlist.js"></script>

<script type="text/html" id="barDemo">
    <div class="layui-btn-container">
           <a class="edit-btn layui-btn layui-btn-xs" lay-event="edit" data-id="{{d.departId}}"><i class="layui-icon layui-icon-edit">编辑</i></a>
           <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete"><i class="layui-icon layui-icon-delete">删除</i></a>
    </div>
</script>
